<?php

namespace app\admin\model;
use think\Model;

class Homeimg extends Model
{
    protected $table = 'd_home_image';

    public function getPcColumnAttr($value)
    {
    	$list = ['12'=>'1列布局', '6'=>'2列布局', '4' =>'3列布局', '3' => '4列布局'];

    	return $list[$value];
    }

    public function getMColumnAttr($value)
    {
    	$list = ['12'=>'1列布局', '6'=>'2列布局', '4' =>'3列布局', '3' => '4列布局'];

    	return $list[$value];
    }
}
